SimpleOpenNI
public class ContextWrapper extends java.lang.Object
| Constructor and Description |
|---|
ContextWrapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addNodeToRecording(int nodeType,
boolean lossy) |
boolean |
alternativeViewPointDepthToImage() |
void |
calcUserCoordsys(float[] point) |
void |
calcUserCoordsysBack(float[] point) |
void |
calcUserCoordsysBackMat(float[] mat) |
void |
calcUserCoordsysMat(float[] mat) |
static void |
chdir(java.lang.String dir) |
void |
close() |
void |
convertProjectiveToRealWorld(float[] pProjective,
float[] pRealWorld) |
void |
convertProjectiveToRealWorld(float x,
float y,
float z,
float[] xr,
float[] yr,
float[] zr) |
void |
convertRealWorldToProjective(float[] pRealWorld,
float[] pProjective) |
void |
convertRealWorldToProjective(float x,
float y,
float z,
float[] xp,
float[] yp,
float[] zp) |
int |
curFramePlayer() |
void |
delete() |
int |
depthHeight() |
int |
depthImage(int[] map) |
int |
depthImageColorMode() |
long |
depthImageTimeStamp() |
int |
depthMap(int[] map) |
int |
depthMapRealWorld(float[] map) |
int |
depthMapSize() |
long |
depthMapTimeStamp() |
long |
depthRealWorldTimeStamp() |
boolean |
depthToColor() |
int |
depthWidth() |
static int |
deviceCount() |
int |
deviceIndex() |
static int |
deviceNames(StrVector nodeNames) |
boolean |
enableDepth() |
boolean |
enableDepth(int width,
int height,
int fps) |
boolean |
enableHand() |
boolean |
enableIR() |
boolean |
enableIR(int width,
int height,
int fps) |
boolean |
enableRecorder(java.lang.String filePath) |
boolean |
enableRGB() |
boolean |
enableRGB(int width,
int height,
int fps) |
boolean |
enableUser() |
void |
endGesture(int gesture) |
int |
framesPlayer() |
boolean |
getBoundingBox(int user,
float[] boudingbox) |
boolean |
getCoM(int user,
float[] com) |
static java.lang.String |
getcwd() |
float |
getJointOrientationSkeleton(int user,
int joint,
float[] jointOrientation) |
float |
getJointPositionSkeleton(int user,
int joint,
float[] jointPos) |
int |
getNumberOfUsers() |
float |
getSmoothingHand() |
void |
getUserCoordsys(float[] mat) |
void |
getUserCoordsysBack(float[] mat) |
void |
getUserCoordsysTransMat(float[] mat) |
int |
getUsers(IntVector userList) |
long |
handTimeStamp() |
boolean |
hasUserCoordsys() |
float |
hFieldOfView() |
long |
imageTimeStamp() |
boolean |
init() |
boolean |
init(int runMode) |
boolean |
init(int deviceIndex,
int runMode) |
boolean |
init(java.lang.String record) |
boolean |
init(java.lang.String record,
int runMode) |
static boolean |
initContext() |
int |
irHeight() |
int |
irImage(int[] map) |
int |
irMap(int[] map) |
long |
irTimeStamp() |
int |
irWidth() |
boolean |
isEndPlayer() |
boolean |
isInit() |
boolean |
isPlaybackPlay() |
boolean |
isTrackingSkeleton(int user) |
boolean |
mirror() |
int |
nodes() |
boolean |
openFileRecording(java.lang.String filePath) |
void |
playbackPlay(boolean play) |
float |
playbackSpeedPlayer() |
static int |
raySphereIntersection(float[] p,
float[] dir,
float[] sphereCenter,
float sphereRadius,
float[] hit1,
float[] hit2) |
static boolean |
rayTriangleIntersection(float[] p,
float[] dir,
float[] vec0,
float[] vec1,
float[] vec2,
float[] hit) |
boolean |
repeatPlayer() |
void |
resetUserCoordsys() |
int |
rgbHeight() |
int |
rgbImage(int[] map) |
int |
rgbWidth() |
long |
sceneTimeStamp() |
void |
seekPlayer(int offset) |
boolean |
setDepthColorSyncEnabled(boolean enable) |
void |
setDepthImageColor(int r,
int g,
int b) |
void |
setDepthImageColorMode(int mode) |
boolean |
setDepthToColor(boolean enable) |
void |
setMirror(boolean flag) |
void |
setPlaybackSpeedPlayer(float speed) |
void |
setRepeatPlayer(boolean loop) |
void |
setSmoothingHand(float smoothingFactor) |
void |
setUserCoordsys(float centerX,
float centerY,
float centerZ,
float xDirX,
float xDirY,
float xDirZ,
float zDirX,
float zDirY,
float zDirZ) |
void |
startGesture(int gesture) |
int |
startTrackingHand(float[] pos) |
void |
startTrackingSkeleton(int user) |
void |
stopTrackingAllHand() |
void |
stopTrackingHand(int handId) |
void |
stopTrackingSkeleton(int user) |
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
void |
update() |
static void |
updateAll() |
long |
updateSubTimeStamp() |
long |
updateTimeStamp() |
int |
userHeight() |
int |
userImage(int[] map) |
int |
userMap(int[] map) |
long |
userTimeStamp() |
int |
userWidth() |
int |
version() |
float |
vFieldOfView() |
public boolean addNodeToRecording(int nodeType,
boolean lossy)
public boolean alternativeViewPointDepthToImage()
public void calcUserCoordsys(float[] point)
public void calcUserCoordsysBack(float[] point)
public void calcUserCoordsysBackMat(float[] mat)
public void calcUserCoordsysMat(float[] mat)
public static void chdir(java.lang.String dir)
public void close()
public void convertProjectiveToRealWorld(float[] pProjective,
float[] pRealWorld)
public void convertProjectiveToRealWorld(float x,
float y,
float z,
float[] xr,
float[] yr,
float[] zr)
public void convertRealWorldToProjective(float[] pRealWorld,
float[] pProjective)
public void convertRealWorldToProjective(float x,
float y,
float z,
float[] xp,
float[] yp,
float[] zp)
public int curFramePlayer()
public void delete()
public int depthHeight()
public int depthImage(int[] map)
public int depthImageColorMode()
public long depthImageTimeStamp()
public int depthMap(int[] map)
public int depthMapRealWorld(float[] map)
public int depthMapSize()
public long depthMapTimeStamp()
public long depthRealWorldTimeStamp()
public boolean depthToColor()
public int depthWidth()
public static int deviceCount()
public int deviceIndex()
public static int deviceNames(StrVector nodeNames)
public boolean enableDepth()
public boolean enableDepth(int width,
int height,
int fps)
public boolean enableHand()
public boolean enableIR()
public boolean enableIR(int width,
int height,
int fps)
public boolean enableRecorder(java.lang.String filePath)
public boolean enableRGB()
public boolean enableRGB(int width,
int height,
int fps)
public boolean enableUser()
public void endGesture(int gesture)
public int framesPlayer()
public boolean getBoundingBox(int user,
float[] boudingbox)
public boolean getCoM(int user,
float[] com)
public static java.lang.String getcwd()
public float getJointOrientationSkeleton(int user,
int joint,
float[] jointOrientation)
public float getJointPositionSkeleton(int user,
int joint,
float[] jointPos)
public int getNumberOfUsers()
public float getSmoothingHand()
public void getUserCoordsys(float[] mat)
public void getUserCoordsysBack(float[] mat)
public void getUserCoordsysTransMat(float[] mat)
public int getUsers(IntVector userList)
public long handTimeStamp()
public boolean hasUserCoordsys()
public float hFieldOfView()
public long imageTimeStamp()
public boolean init()
public boolean init(int runMode)
public boolean init(int deviceIndex,
int runMode)
public boolean init(java.lang.String record)
public boolean init(java.lang.String record,
int runMode)
public static boolean initContext()
public int irHeight()
public int irImage(int[] map)
public int irMap(int[] map)
public long irTimeStamp()
public int irWidth()
public boolean isEndPlayer()
public boolean isInit()
public boolean isPlaybackPlay()
public boolean isTrackingSkeleton(int user)
public boolean mirror()
public int nodes()
public boolean openFileRecording(java.lang.String filePath)
public void playbackPlay(boolean play)
public float playbackSpeedPlayer()
public static int raySphereIntersection(float[] p,
float[] dir,
float[] sphereCenter,
float sphereRadius,
float[] hit1,
float[] hit2)
public static boolean rayTriangleIntersection(float[] p,
float[] dir,
float[] vec0,
float[] vec1,
float[] vec2,
float[] hit)
public boolean repeatPlayer()
public void resetUserCoordsys()
public int rgbHeight()
public int rgbImage(int[] map)
public int rgbWidth()
public long sceneTimeStamp()
public void seekPlayer(int offset)
public boolean setDepthColorSyncEnabled(boolean enable)
public void setDepthImageColor(int r,
int g,
int b)
public void setDepthImageColorMode(int mode)
public boolean setDepthToColor(boolean enable)
public void setMirror(boolean flag)
public void setPlaybackSpeedPlayer(float speed)
public void setRepeatPlayer(boolean loop)
public void setSmoothingHand(float smoothingFactor)
public void setUserCoordsys(float centerX,
float centerY,
float centerZ,
float xDirX,
float xDirY,
float xDirZ,
float zDirX,
float zDirY,
float zDirZ)
public void startGesture(int gesture)
public int startTrackingHand(float[] pos)
public void startTrackingSkeleton(int user)
public void stopTrackingAllHand()
public void stopTrackingHand(int handId)
public void stopTrackingSkeleton(int user)
public void swigReleaseOwnership()
public void swigTakeOwnership()
public void update()
public static void updateAll()
public long updateSubTimeStamp()
public long updateTimeStamp()
public int userHeight()
public int userImage(int[] map)
public int userMap(int[] map)
public long userTimeStamp()
public int userWidth()
public int version()
public float vFieldOfView()